package com.example.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86187
 * Date: 2023-10-01
 * Time: 13:05
 */
@FeignClient("adminservice")  // 指定向哪一个服务发起请求
public interface AdminClient {

    @GetMapping("/admin/verify/{id}")
    boolean verifyIsAdmin(@PathVariable("id") Long id);
}
